package org.spidermesh.meshlog.facade;

import org.spidermesh.meshlog.annotation.MeshLog;
import org.spidermesh.meshlog.properties.MeshLogProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @PackageName:org.spidermesh.meshlog.facade
 * @ClassName:MeshLogController
 * @Description:
 * @Author:hw
 * @Date:2020-12-3 17:23
 */
@Controller
public class MeshLogController {

    @Autowired
    private MeshLogProperties meshLogProperties;
    @RequestMapping("/index")
    @ResponseBody
    @MeshLog(tag = "MeshLog 主页")
    public String index(){
        return "meshi log:"+meshLogProperties.getPersist();
    }
}
